1 package mobisnap.mobile_trx;
2
3 import java.io.*;
4 import java.util.*;
5
6 public class SimpleMobisnapInterpreter
7 {
8 private static MobisnapSQL interpreter;
9
10 public SimpleMobisnapInterpreter() {
11 }
12
13 public ASTCompilationUnit compilationUnit( Reader reader) throws Exception {
14 if( interpreter == null)
15 interpreter = new MobisnapSQL( reader);
16 else
17 interpreter.ReInit( reader);
18 return interpreter.CompilationUnit();
19 }
20
21 /***
22 * Process a database definition : syntax : begin (sql_ddl_statements)* end ;
23 */
24 public ASTDatabaseDefinition databaseDefinition( Reader reader) throws Exception {
25 if( interpreter == null)
26 interpreter = new MobisnapSQL( reader);
27 else
28 interpreter.ReInit( reader);
29 return interpreter.DatabaseDefinition();
30 }
31 }
This page was automatically generated by Maven